﻿using System;
using MessagePack.Formatters;

namespace MessagePack.Internal
{
	// Token: 0x02000125 RID: 293
	internal static class OldSpecResolverGetFormatterHelper
	{
		// Token: 0x0600045B RID: 1115 RVA: 0x000137C8 File Offset: 0x00011BC8
		internal static object GetFormatter(Type t)
		{
			if (t == typeof(string))
			{
				return OldSpecStringFormatter.Instance;
			}
			if (t == typeof(string[]))
			{
				return new ArrayFormatter<string>();
			}
			if (t == typeof(byte[]))
			{
				return OldSpecBinaryFormatter.Instance;
			}
			return null;
		}
	}
}
